package cn.topcodes.tcsf.admin.web.controller;

import cn.topcode.unicorn.utils.DateUtil;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * Created by Unicorn on 2018/3/14.
 */
public class TestService {

    @Async
    public void async() {
        try {
            Thread.sleep(10000);
            System.out.println("Test Async." + DateUtil.formatCurrentDate());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
